<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./assets/layui/css/layui.css" />
    <style>
      body {
        padding-top: 1800px;
      }
    </style>
  </head>
  <body>
    <div class="layui-container"></div>

    <script src="./assets/layui/layui.js"></script>
    <script>
      layui.use(["util"], function () {
        var util = layui.util;
        // 工具块是在右下角出现的
        util.fixbar({
          bar1: "&#xe68c;", // unicod字符 or boolean
          bar2: true,
          bgcolor: "red", // 区块背景色
          showHeight: 100, // TOP按钮的滚动条高度临界值。默认：200
          css: { right: 100, bottom: 100 },
          click: function (type) {
            console.log(type);
          },
        });
      });
    </script>
  </body>
</html>
